/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package Estacionamento.GUI;

import Estacionamento.ClassesBasicas.Cliente;
import Estacionamento.ClassesBasicas.Endereco;
import Estacionamento.ClassesBasicas.Plano;
import Estacionamento.ClassesBasicas.Veiculo;
import Estacionamento.ClassesBasicas.EntradaSaida;
import Estacionamento.Negocio.Fachada;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;

/**
 *
 * @author Danilo Lima
 */
public class CadastrarCliente1 extends javax.swing.JFrame {

    /**
     * Creates new form CadastrarCliente1
     */
    public CadastrarCliente1() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated byBar the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel15 = new javax.swing.JLabel();
        buttonCadastrarCliente = new javax.swing.JButton();
        jLabel2 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        campoCadastrarClienteVeiMarca = new javax.swing.JTextField();
        campoCadastrarClienteTel = new javax.swing.JTextField();
        campoCadastrarClienteCPF = new javax.swing.JTextField();
        campoCadastrarClienteCEP = new javax.swing.JTextField();
        jLabel12 = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        campoCadastrarClienteRua = new javax.swing.JTextField();
        jLabel16 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        campoCadastrarClienteVeiPlacaLetra = new javax.swing.JTextField();
        campoCadastrarClienteBairro = new javax.swing.JTextField();
        jLabel17 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        campoCadastrarClienteVeiPlacaNum = new javax.swing.JTextField();
        campoCadastrarClienteCidade = new javax.swing.JTextField();
        jLabel18 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        campoCadastrarClienteVeiTipo = new javax.swing.JTextField();
        jLabel13 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        campoCadastrarClienteNome = new javax.swing.JTextField();
        jLabel4 = new javax.swing.JLabel();
        jLabel14 = new javax.swing.JLabel();
        campoCadastrarClienteUF = new javax.swing.JTextField();
        campoCadastrarClienteNum = new javax.swing.JTextField();
        campoCadastrarClienteComp = new javax.swing.JTextField();
        campoCadastrarClienteVeiNome = new javax.swing.JTextField();
        jButton2 = new javax.swing.JButton();
        jLabel11 = new javax.swing.JLabel();
        jLabel10 = new javax.swing.JLabel();
        CampoPlanoTipo = new javax.swing.JTextField();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jLabel15.setText("Marca:");

        buttonCadastrarCliente.setText("Cadastrar");
        buttonCadastrarCliente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buttonCadastrarClienteActionPerformed(evt);
            }
        });

        jLabel2.setText("CPF:");

        jLabel7.setText("Bairro:");

        jLabel12.setText("Plano:");

        jLabel1.setText("Nome:");

        jLabel16.setText("Placa:");

        jLabel3.setText("Tel:");

        jLabel17.setText("-");

        jLabel8.setText("Cidade:");

        jLabel18.setText("Tipo:");

        jLabel6.setText("Nº");

        jLabel9.setText("UF:");

        jLabel13.setText("Veículo");

        jLabel5.setText("Rua:");

        jLabel4.setText("Endereço");

        jLabel14.setText("Nome:");

        jButton2.setText("Cancelar");
        jButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton2ActionPerformed(evt);
            }
        });

        jLabel11.setText("CEP:");

        jLabel10.setText("Complemento:");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addGroup(layout.createSequentialGroup()
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                                    .addComponent(jLabel16)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(campoCadastrarClienteVeiPlacaLetra, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jLabel17)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(campoCadastrarClienteVeiPlacaNum, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                                        .addComponent(jLabel14)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(campoCadastrarClienteVeiNome))
                                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                                        .addComponent(jLabel8)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(campoCadastrarClienteCidade, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jLabel9)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(campoCadastrarClienteUF, javax.swing.GroupLayout.PREFERRED_SIZE, 47, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jLabel1)
                                            .addComponent(jLabel3))
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(campoCadastrarClienteNome)
                                            .addGroup(layout.createSequentialGroup()
                                                .addComponent(campoCadastrarClienteTel, javax.swing.GroupLayout.PREFERRED_SIZE, 88, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                .addComponent(jLabel2)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                .addComponent(campoCadastrarClienteCPF, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addGap(0, 0, Short.MAX_VALUE))))
                                    .addComponent(jLabel4, javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jLabel5)
                                            .addComponent(jLabel7))
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(campoCadastrarClienteRua)
                                            .addComponent(campoCadastrarClienteBairro)))))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(layout.createSequentialGroup()
                                    .addComponent(jLabel6)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(campoCadastrarClienteNum, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                                        .addComponent(jLabel11)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(campoCadastrarClienteCEP))
                                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                                        .addComponent(jLabel10)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(campoCadastrarClienteComp, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                .addGroup(layout.createSequentialGroup()
                                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addComponent(jLabel15)
                                        .addComponent(jLabel18)
                                        .addComponent(jLabel12))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addComponent(campoCadastrarClienteVeiTipo)
                                        .addGroup(layout.createSequentialGroup()
                                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addComponent(campoCadastrarClienteVeiMarca, javax.swing.GroupLayout.PREFERRED_SIZE, 98, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addComponent(CampoPlanoTipo, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addGap(0, 0, Short.MAX_VALUE))))))
                        .addGroup(layout.createSequentialGroup()
                            .addComponent(buttonCadastrarCliente)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jButton2)))
                    .addComponent(jLabel13))
                .addGap(0, 0, 0))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel1)
                    .addComponent(campoCadastrarClienteNome, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel12)
                    .addComponent(CampoPlanoTipo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(campoCadastrarClienteCPF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel2)
                    .addComponent(jLabel3)
                    .addComponent(campoCadastrarClienteTel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel4)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel5)
                    .addComponent(campoCadastrarClienteRua, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel6)
                    .addComponent(campoCadastrarClienteNum, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel7)
                    .addComponent(campoCadastrarClienteBairro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel10)
                    .addComponent(campoCadastrarClienteComp, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel8)
                    .addComponent(campoCadastrarClienteCidade, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel11)
                    .addComponent(campoCadastrarClienteCEP, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel9)
                    .addComponent(campoCadastrarClienteUF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel13)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel14)
                    .addComponent(campoCadastrarClienteVeiNome, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel15)
                    .addComponent(campoCadastrarClienteVeiMarca, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel16)
                    .addComponent(campoCadastrarClienteVeiPlacaLetra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel17)
                    .addComponent(campoCadastrarClienteVeiPlacaNum, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel18)
                    .addComponent(campoCadastrarClienteVeiTipo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(buttonCadastrarCliente)
                    .addComponent(jButton2))
                .addGap(0, 0, 0))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void buttonCadastrarClienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonCadastrarClienteActionPerformed
        Cliente cli = new Cliente();
        Endereco end = new Endereco();
        Veiculo vei = new Veiculo();
        Plano pla = new Plano();
        Fachada faa = new Fachada();
        EntradaSaida ent =new EntradaSaida();
        
        try {
            pla = faa.listarPlano(CampoPlanoTipo.getText());
        } catch (Exception ex) {
            Logger.getLogger(CadastrarCliente1.class.getName()).log(Level.SEVERE, null, ex);
        }
        if (campoCadastrarClienteNome.getText().trim().equals("")) {
            JOptionPane.showMessageDialog(null, "Preencha o campo Nome");
            campoCadastrarClienteNome.requestFocus();

        } else if (campoCadastrarClienteTel.getText().trim().equals("")) {
            JOptionPane.showMessageDialog(null, "Preencha o campo Telefone");
            campoCadastrarClienteTel.requestFocus();
        } else if (campoCadastrarClienteCPF.getText().trim().equals("")) {
            JOptionPane.showMessageDialog(null, "Preencha o campo Cpf");
            campoCadastrarClienteCPF.requestFocus();
        } else if (campoCadastrarClienteRua.getText().trim().equals("")) {
            JOptionPane.showMessageDialog(null, "Preencha o campo Rua");
            campoCadastrarClienteRua.requestFocus();
        } else if (campoCadastrarClienteBairro.getText().trim().equals("")) {
            JOptionPane.showMessageDialog(null, "Preencha o campo Bairro");
            campoCadastrarClienteBairro.requestFocus();
        } else if (campoCadastrarClienteNum.getText().trim().equals("")) {
            JOptionPane.showMessageDialog(null, "Preencha o campo Numero");
            campoCadastrarClienteNum.requestFocus();
        } else if (campoCadastrarClienteComp.getText().trim().equals("")) {
            JOptionPane.showMessageDialog(null, "Preencha o campo Complemento");
            campoCadastrarClienteComp.requestFocus();
        } else if (campoCadastrarClienteCidade.getText().trim().equals("")) {
            JOptionPane.showMessageDialog(null, "Preencha o campo cidade");
            campoCadastrarClienteCidade.requestFocus();
        } else if (campoCadastrarClienteUF.getText().trim().equals("")) {
            JOptionPane.showMessageDialog(null, "Preencha o campo UF");
            campoCadastrarClienteUF.requestFocus();
        } else if (campoCadastrarClienteCEP.getText().trim().equals("")) {
            JOptionPane.showMessageDialog(null, "Preencha o campo CEP");
            campoCadastrarClienteCEP.requestFocus();
        } else if (campoCadastrarClienteVeiNome.getText().trim().equals("")) {
            JOptionPane.showMessageDialog(null, "Preencha o campo Nome do veiculo");
            campoCadastrarClienteVeiNome.requestFocus();
        } else if (campoCadastrarClienteVeiMarca.getText().trim().equals("")) {
            JOptionPane.showMessageDialog(null, "Preencha o campo marca");
            campoCadastrarClienteVeiMarca.requestFocus();
        } else if (campoCadastrarClienteVeiPlacaLetra.getText().trim().equals("")) {
            JOptionPane.showMessageDialog(null, "Preencha   o campo placa ");
            campoCadastrarClienteVeiPlacaLetra.requestFocus();
        } else if (campoCadastrarClienteVeiPlacaNum.getText().trim().equals("")) {
            JOptionPane.showMessageDialog(null, "Preencha o campo Placa");
            campoCadastrarClienteVeiPlacaNum.requestFocus();
        } else if (campoCadastrarClienteNome.getText().trim().equals("")) {
            JOptionPane.showMessageDialog(null, "Preencha o campo Tipo ");
            campoCadastrarClienteNome.requestFocus();
        } else if (pla.getTipoPlano() == null) {
            JOptionPane.showMessageDialog(null, "tipo de plano nao existente");
        } else {

            end.setRua(campoCadastrarClienteRua.getText());
            end.setComplemento(campoCadastrarClienteComp.getText());
            end.setBairro(campoCadastrarClienteBairro.getText());
            end.setCidade(campoCadastrarClienteCidade.getText());
            end.setEstado(campoCadastrarClienteUF.getText());
            end.setNumero(campoCadastrarClienteNum.getText());
            end.setCep(campoCadastrarClienteCEP.getText());

            Fachada fa = new Fachada();

            vei.setNome(campoCadastrarClienteVeiNome.getText());
            vei.setMarca(campoCadastrarClienteVeiMarca.getText());
            vei.setPlacaLetra(campoCadastrarClienteVeiPlacaLetra.getText());
            vei.setPlacaNum(campoCadastrarClienteVeiPlacaNum.getText());
            vei.setTipoVeiculo(campoCadastrarClienteVeiTipo.getText());
            vei.setCliente(cli);
            cli.setNome(campoCadastrarClienteNome.getText());
            cli.setTelefone(campoCadastrarClienteTel.getText());
            cli.setCpf(campoCadastrarClienteCPF.getText());
            cli.setEndereco(end);
            cli.setVeiculo(vei);
            cli.setPlano(pla);

            try {
                fa.cadastrarCliente(cli);

                dispose();

// TODO add your handling code here:
            } catch (Exception ex) {
                Logger.getLogger(CadastrarCliente1.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    }//GEN-LAST:event_buttonCadastrarClienteActionPerformed

    private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
        dispose();        // TODO add your handling code here:
    }//GEN-LAST:event_jButton2ActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(CadastrarCliente1.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(CadastrarCliente1.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(CadastrarCliente1.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(CadastrarCliente1.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new CadastrarCliente1().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JTextField CampoPlanoTipo;
    private javax.swing.JButton buttonCadastrarCliente;
    private javax.swing.JTextField campoCadastrarClienteBairro;
    private javax.swing.JTextField campoCadastrarClienteCEP;
    private javax.swing.JTextField campoCadastrarClienteCPF;
    private javax.swing.JTextField campoCadastrarClienteCidade;
    private javax.swing.JTextField campoCadastrarClienteComp;
    private javax.swing.JTextField campoCadastrarClienteNome;
    private javax.swing.JTextField campoCadastrarClienteNum;
    private javax.swing.JTextField campoCadastrarClienteRua;
    private javax.swing.JTextField campoCadastrarClienteTel;
    private javax.swing.JTextField campoCadastrarClienteUF;
    private javax.swing.JTextField campoCadastrarClienteVeiMarca;
    private javax.swing.JTextField campoCadastrarClienteVeiNome;
    private javax.swing.JTextField campoCadastrarClienteVeiPlacaLetra;
    private javax.swing.JTextField campoCadastrarClienteVeiPlacaNum;
    private javax.swing.JTextField campoCadastrarClienteVeiTipo;
    private javax.swing.JButton jButton2;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    // End of variables declaration//GEN-END:variables
}
